package com.dhcc.bpm.modules.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.Excel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @Title
 * @ClassName PolicyTag
 * @Desription 报文策略标签定义表
 * @Author zhangzexu
 * @Date 2020/10/2 14:16
 * @Version V1.0
 */
@Data
@TableName("opc_policy_tag")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "opc_policy_tag", description = "报文策略标签定义表")
public class PolicyTag extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 关联OPC_POLICY表ID
     */
    @ApiModelProperty(value = "关联OPC_POLICY表ID")
    @Excel(name = "关联OPC_POLICY表ID")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private Long policyId;

    /**
     * 标签类型
     */
    @ApiModelProperty(value = "标签类型")
    @Excel(name = "标签类型")
    private int tagType;
    
    /**
     * 1-组包，2-拆包
     */
    @ApiModelProperty(value = "1-组包，2-拆包")
    @Excel(name = "1-组包，2-拆包")
    private int anInType;

    /**
     * <package>标签name属性
     */
    @ApiModelProperty(value = "<package>标签name属性")
    @Excel(name = "<package>标签name属性")
    private String packageName;


    /**
     * <package>标签check属性
     */
    @ApiModelProperty(value = "<package>标签check属性")
    @Excel(name = "<package>标签check属性")
    private String packageCheck;

    /**
     * <package>标签name属性
     */
    @ApiModelProperty(value = "<package>标签tacitly属性,0否,1是")
    @Excel(name = "<package>标签tacitly属性,0否,1是")
    private int packageTacitly;

    /**
     * 备用字段1
     */
    @ApiModelProperty(value = "备用字段1")
    @Excel(name = "备用字段1")
    private String spare1;



    /**
     * 备用字段2
     */
    @ApiModelProperty(value = "备用字段2")
    @Excel(name = "备用字段2")
    private String spare2;

//    /**
//     * 导出数据标识
//     */
//    @ApiModelProperty(value = "导出数据标识")
//    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
//    private String expSeq;
}
